package utils

import (
	"math/rand"
	"time"
)

var (
	seed = rand.NewSource(time.Now().UnixNano())
)

func RandomCode() int {
	r := rand.New(seed)
	code := r.Intn(999999)
	if code < 100000 {
		code += 100000
	}
	return code
}
